TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += main.cpp \
    ImageUtils.cpp \
    filterrenderadapter.cpp \
    imagemedia.cpp \
    mediadecode.cpp \
    muxer.cpp \
    audioencoder.cpp \
    videoencoder.cpp \
    audioresampler.cpp
message($$PWD);

win32 {
INCLUDEPATH += $$PWD/ffmpeg-4.2.1-win32-dev/include
LIBS += $$PWD/ffmpeg-4.2.1-win32-dev/lib/avformat.lib   \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/avcodec.lib    \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/avdevice.lib   \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/avfilter.lib   \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/avutil.lib     \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/postproc.lib   \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/swresample.lib \
        $$PWD/ffmpeg-4.2.1-win32-dev/lib/swscale.lib
}


mac {

INCLUDEPATH += $$PWD/ffmpeg_libs/include
LIBS += $$PWD/ffmpeg_libs/lib/libavformat.dylib   \
        $$PWD/ffmpeg_libs/lib/libavcodec.dylib    \
        $$PWD/ffmpeg_libs/lib/libavdevice.dylib   \
        $$PWD/ffmpeg_libs/lib/libavfilter.dylib   \
        $$PWD/ffmpeg_libs/lib/libavutil.dylib     \
        $$PWD/ffmpeg_libs/lib/libpostproc.dylib   \
        $$PWD/ffmpeg_libs/lib/libswresample.dylib \
        $$PWD/ffmpeg_libs/lib/libswscale.dylib
}

HEADERS += \
    ImageUtils.h \
    LogUtils.h \
    filterrenderadapter.h \
    imagemedia.h \
    mediadecode.h \
    muxer.h \
    audioencoder.h \
    stringutils.h \
    videoencoder.h \
    audioresampler.h
